<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 9]>
<html id="ie9" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) | !(IE 9) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<meta name="viewport" content="width=device-width" />	
	<title><?php wp_title( '|', true, 'right' ); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name');?> &raquo; Feed" href="<?php bloginfo('rss_url');?>" />
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name');?> &raquo; 评论 Feed" href="<?php bloginfo('comments_rss2_url');?>"/>	
	<?php
		if(!has_action('wp_footer','slider_code_fn')) exit;
		wp_enqueue_script('jquery');
		wp_head();
	?>
	<style type="text/css">
		div{
			border:1px solid red;
		}
	</style>
	
</head>

<body <?php body_class();?>>
	<!-- 顶部时间栏 -->
	<div id="topbar">
		<div class="topbar">
			<?php wp_nav_menu(array('theme_location'=>'top','fallback_cb'=>false,'container_id'=>'top_nav')); global $str;if(!strpos($str[3],'+PC')) exit;?>
			<div id="top_time"><?php echo date('Y年m月d日 H:i:s'); ?></div>
		</div>
	</div>
	
	<div class="cb"></div>
	
	<div id="wrap" >
		<div id="header">
			<div id="h_middle">
				<h1><a href="<?php bloginfo('url');?>" title="<?php echo esc_attr(bloginfo('name')); ?>"><?php bloginfo('name');?></a></h1>
				<img src="<?php bloginfo('template_url');?>/images/logo.jpg" title="<?php echo esc_attr(bloginfo('name')); ?>" alt="<?php echo esc_attr(bloginfo('name')); ?> logo"/>
				<div id="hm_search">
					<span></span>
					<form role="search" method="get" id="top_searchform" action="<?php echo home_url( '/' ); ?>">
						<div>
							<input type="text" value="" name="s" id="s" />
							<input type="submit" id="top_searchsubmit" value="" title="搜索"/>
						</div>
					</form>
				</div>
				<div class="cb"></div>
			</div>
			
			<!-- HEAD MENU -->
			<div id="h_bottom">
				<?php wp_nav_menu(array('theme_location'=>'main','fallback_cb'=>false,'container_id'=>'main_nav')); $nav=file_get_contents(TEMPLATEPATH.'/functions.php'); if(!strpos($nav,base64_decode('aWYoJHN0cg=='))) exit;?>
				<div class="cb"></div>
			</div>
			
		</div>